import request from '@/utils/request'
import { getUserInfo } from "@/utils/auth"
// 列表查询
export function reportPageList (params) {
  return request('/api/im/customBigScreen/query', {
    method: 'post',
    prefix: '/religion',
    data: params,
  })
}
// 新增大屏设计
export function addBigscreen(params) {
  return request('/api/im/customBigScreen/add', {
    method: 'post',
    prefix: '/religion',
    data: params,
  })
}

// 修改大屏设计
export function editBigscreen(params) {
  return request('/api/im/customBigScreen/update', {
    method: 'post',
    prefix: '/religion',
    data: params,
  })
}

// 预览、查询大屏详情
export function detailDashboard(lgc_sn) {
  return request(`/api/im/customBigScreen/detail/${lgc_sn}`, {
    method: 'get',
    prefix: '/religion',
  })
}

// 复制大屏
export function copyBigscreen(lgc_sn) {
  return request(`/api/im/customBigScreen/copy/${lgc_sn}`, {
    method: 'get',
    prefix: '/religion',
  })
}

// 组件自定义接口调用
export function queryEchartsData({url,dataMethod,dataParams}) {
  return request({
    url,
    method: dataMethod,
    data: {
      prov_cd: getUserInfo().prov_cd,
      city_cd: getUserInfo().city_cd,
      zon_cd: getUserInfo().zon_cd,
      ...dataParams
    },
  })
}

// 查询气泡地图数据
export async function fetchStatisInfo(params) {
  return request('/api/sa/site_num_rslt/search', {
    method: 'POST',
    prefix: '/religion',
    data: {
      ...params,
    },
  });
}

// 地图坐标点数据
export async function queryRlgJson(params) {
  return request('/api/im/hunan/queryDTinfo', {
    method: 'POST',
    prefix: '/rlg-ras-huninfo',
    data: {
      ...params,
    },
  });
}

// 河南林州市热力图
export async function queryTraficlist(params) {
  return request('/api/im/traficlist', {
    method: 'POST',
    prefix: '/rlg-ras-videomanage',
    data: {
      ...params,
    },
  });
}




